/** * Minified by jsDelivr using Terser v5.39.0. * Original file: /npm/revealfx@0.0.2/src/revealFx.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ !function(e){"use strict";function t(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function n(e,t,n){var i=document.createElement(e);return i.className=t||"",i.innerHTML=n||"",i}function i(e,t,n,i,r,s,a,o,l,y,c){e.style.position=t||"absolute",e.style.top=n||"0",e.style.left=i||"0",e.style.color=a||"#fff",e.style.width=r||"100%",e.style.height=s||"100%",e.style.backgroundColor=o||"#f0f0f0",e.style.opacity=l||"0",e.style.pointerEvents=y||"none",e.style.zIndex=c||0}function r(e,n){this.el=e,this.revealLayers=[],this.options=t({},this.options),t(this.options,n),this._init()}r.prototype.options={isContentHidden:!0,layers:1,revealSettings:{direction:"lr",bgColors:["#111"],duration:500,easing:"easeInOutQuint",coverArea:0,delay:100,onHalfway:function(e,t){return!1},onStart:function(e,t){return!1},onComplete:function(e,t){return!1}}},r.prototype._init=function(){this._layout()},r.prototype._layout=function(){var e=getComputedStyle(this.el).position;"fixed"!==e&&"absolute"!==e&&"relative"!==e&&(this.el.style.position="relative");this.content=n("div","block-revealer__content",this.el.innerHTML),this.options.isContentHidden&&(this.content.style.opacity=0),this.el.innerHTML="",this.el.appendChild(this.content);var t=0,r=0;const s=this.options.layers;for(var a="#111",o=0;o